import { lazy } from 'react'
import { Navigate } from 'react-router-dom'
const Dashboard = lazy(() => import('@/pages/dashboard'))
const BiCore = lazy(() => import('@/pages/bi-core'))
const Dataset = lazy(() => import('@/pages/dataset'))
const SetDataset = lazy(() => import('@/pages/set-dataset'))

export default [
  {
    path: '/dashboard',
    element: <Dashboard />
  },
  {
    path: '/setDashboard',
    element: <BiCore />
  },
  {
    path: '/dataset',
    element: <Dataset />
  },
  {
    path: '/setDataset/:id',
    element: <SetDataset />
  },
  {
    path: '/',
    element: <Navigate to="/dashboard" />
  }
]
